Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spark] Adding ConcurrentDomainMetadataException to correctly indicate conflicting domains. #3726

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mikek-db
Copy link

Adding ConcurrentDomainMetadataException to correctly indicate conflicting domains as compared to ConcurrentTransactionException.

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

ConcurrentTransactionException did not correctly indicate the problem as it was intended to be used during SetTransaction. By making a new typed error we collect additional information about the conflicting operation in the context of the exception.

How was this patch tested?

build/sbt compile && build/sbt test

Does this PR introduce any user-facing changes?

Exceptions will now indicate ConcurrentDomainMetadataException rather than ConcurrentTransactionException with domain info in the string message.

@mikek-db mikek-db changed the title Adding ConcurrentDomainMetadataException to correctly indicate conflicting domains. [Spark] Adding ConcurrentDomainMetadataException to correctly indicate conflicting domains. Sep 25, 2024
@mikek-db mikek-db marked this pull request as ready for review September 25, 2024 17:34
Copy link
Collaborator

@rahulsmahadev rahulsmahadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants